package test.format_test;

public abstract class ForAbstract {
    public ForAbstract(){
        System.out.println("父类构造方法");
    }
    void a() {
        System.out.println("aa");
    }

    abstract void b();
    abstract void c();
    public abstract boolean equals(Object object);
}


class main{
    public static void main(String[] args) {
        ForAbstract a = new ForAbstract() {

            @Override
            void b() {

            }

            @Override
            void c() {

            }

            @Override
            public boolean equals(Object object) {
                return false;
            }
        };
        ForAbstract b = a;
        System.out.println(b.equals(a));
        a.a();
    }
}


abstract class withInterface implements Runnable{
    //public void run(){}


}

class extendsInterface extends  withInterface{
//父类实现的接口会被子类继承
    @Override
    public void run() {

    }
}
